# ===========================================================================
#   rsio.py -----------------------------------------------------------------
# ===========================================================================

#   import ------------------------------------------------------------------
# ---------------------------------------------------------------------------
from rsvis.__init__ import _logger
import rsvis.utils.general as gu

#   class -------------------------------------------------------------------
# ---------------------------------------------------------------------------
class RSIO(object):

    #   method --------------------------------------------------------------
    # -----------------------------------------------------------------------
    def __init__(
            self,
            param_in,
            param_out,
            param_show,
            logger = None,
            **kwargs
        ):

        self._param_in = param_in
        self._param_out = param_out
        self._param_show = param_show
        
        self._io = gu.PathCreator(**self._param_in["image"])

        self._logger = logger

    #   method --------------------------------------------------------------
    # -----------------------------------------------------------------------
    @property
    def logger(self):
        return self._logger

    #   method --------------------------------------------------------------
    # -----------------------------------------------------------------------
    @logger.setter
    def logger(self, logger):
        self._logger = logger